var path = require('node:path')
module.exports = {
  entry: {
    main: './index_com.js'
  },
  output: {
    filename: '[name].bundle.js',
    path: path.resolve(__dirname, 'dist') // 必须绝对路径
  },
  mode: 'development' // production 代码会被压缩，不利于观察
}